package com.ec.server;

import Ice.Current;

import com.ec.service.*;
import com.ec.core.manage.AppFactory;

public class ProductServiceImpl extends _ProductServiceDisp{
  public DateTime[] getTimes(Ice.Current current){
    int length = 50000;
    DateTime[] dt = new DateTime[length];
    for(int i=0;i<length;i++){
      dt[i]= new DateTime((short)2008,(short)8,(short)12,(short)5,(short)10,(short)15);
    }
    return dt;
  }
  public void printString(String s, Ice.Current current)
  {
    System.out.println(s);
  }
  public DateTime getCurrentDate(Ice.Current current){
    System.out.println(new java.util.Date());
    return new DateTime((short)2008,(short)8,(short)12,(short)5,(short)10,(short)15);
  }
  public void printCurrentDate(DateTime currentDate,Ice.Current current){
    System.out.println(currentDate);
  }
  public String[] queryBySql(String sql,Ice.Current current){
	  return com.ec.core.util.DbUtil.queryBySql(sql);
  }
  public boolean addDirectory(int parentid,float tax,String dirName,Ice.Current current){
	  return AppFactory.getAppFactory().getCrmManage().getProductEntity().addDirectory(dirName, parentid, tax);
  }
  @Override
  public String[] queryBySqlNotType(String sql, Current __current) {
	  return com.ec.core.util.DbUtil.queryBySqlNotType(sql);
  }
  @Override
  public boolean updateDirectory(int id, String dirName, float tax,Current __current) {
		return AppFactory.getAppFactory().getCrmManage().getProductEntity().updateDirectory(id, dirName, tax);
  }
}
